package com.yuma.tingshu.album.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuma.tingshu.model.album.TrackInfo;
import com.yuma.tingshu.query.album.TrackInfoQuery;
import com.yuma.tingshu.vo.album.*;

import java.util.List;

public interface TrackInfoService extends IService<TrackInfo> {

    void saveTrackInfo(TrackInfoVo trackInfoVo);

    Page<TrackListVo> findUserTrackPage(Integer page, Integer limit, TrackInfoQuery query);

    void updateTrackInfo(Long trackId, TrackInfo trackInfo);

    void removeTrackInfo(Long trackId);

    Page<AlbumTrackListVo> findAlbumTrackPage(Long albumId, Integer page, Integer limit);

    TrackStatVo getBytrackId(Long trackId);

    TrackInfo getTrackInfoById(Long trackId);

    List<TrackOrderVo> findUserTrackPaidList(Long trackId);

    List<TrackInfo> findTradeTrackList(Long trackId, Integer tradeCount);
}
